/* 定义变量 */
@baseColor : #ff0d0d;

/* 头部块样式 */
.wjs_header {
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #ccc;
    .row{
        height: 100%;
        text-align: center;
        >div:nth-of-type(-n+3){
            border-right: 1px solid #ccc;
        }
        >div:first-of-type{
            position: relative;
            >.wjs_code{
                >img{
                    position: absolute;
                    top: 49px;
                    left: 50%;
                    transform: translateX(-50%);
                    display: none;
                    border: 1px solid #ccc;
                    border-top: 0px;
                    z-index: 999;
                }
                &:hover{
                    >img{
                        display: block;
                    }
                }
            }
        }
        >div:last-of-type{
            >.btn-danger{
                background-color: @baseColor;
                border-color: @baseColor;
            }
            >.btn{
                padding: 4px 15px;
            }
        }

    }
}

/* 导航样式 */
.wjs_nav {
    .navbar-brand{
        height: 80px;
        /* bootstrap 默认有padding值*/
        line-height: 50px;
    }
    .navbar-nav{
        >li{
            >a{
                line-height: 50px;
                font-size: 16px;
            }
            >a:hover,a:focus{
                background-color: transparent;
                border-bottom: 3px solid @baseColor;
            }
        }
        .active{
            >a,a:hover,a:focus{
                background-color: transparent;
                border-bottom: 3px solid @baseColor;
            }
        }
    }
    .navbar-toggle{
        margin-top: 23px;
    }
}
/* 信息块样式 */
.wjs_info{
    padding: 30px;
    .wjs_icon{
        font-size: 30px;
    }
    .row{
        > div{
            margin-top: 20px;
            >a:hover{
                color: @baseColor;
            }
        }
    }
}

/* 预约块 */
.wjs_reverse{
    height: 60px;
    line-height: 60px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    .wjs_icon{
        font-size: 18px;
    }
    .reverse_now{
        color: @baseColor;
        border-bottom: 1px dashed @baseColor;
    }
    a:hover{
        color: @baseColor;
    }
}

/* 产品快 */
.wjs_product{
    clear: both;
    background-color: #eee;
    padding: 20px;
    /* 导航项样式的修改 */
    .nav-tabs{
        >li{
            margin-bottom: 0px;
            padding: 0px 15px;
            >a{
                line-height: 50px;
                border-radius: 0px;
                border: none;
                background-color:transparent;
            }
            &.active{
                >a,a:hover,a:focus{
                    border: none;
                    border-radius: 0px;
                    background-color: #eee;
                    border-bottom:3px solid @baseColor;
                }
            }
            >a:hover{
                border-bottom:3px solid @baseColor;
            }
        }
    }
    /* 产品详细信息块的样式 */
    .wjs_pBox{
        height: 150px;
        margin-top: 20px;
        background-color: #fff;
        position: relative;
        .wjs_pLeft{
            margin-right: 100px;
            height: 100%;
            background-color:white;
            padding-top: 10px;
            >p{
                width: 100%;
                text-align: center;
                font-size: 16px;
            }
            .row{
                margin-left: -10px;
                margin-right: -10px;
                >div:nth-of-type(even){
                    text-align: right;
                }
                >div{
                    margin-top: 10px;
                }
            }
        }
        .wjs_pRight{
            width: 100px;
            height: 100%;  
            background-color: white;
            position: absolute;
            right: 0px;
            top: 0px;
            border-left: 1px dashed #ccc;
            text-align: center;
            padding-top: 30px;
            >b{
                font-size: 40px;
                color: @baseColor;
            }
            >.wjs_tip{
                width: 100%;
                position: absolute;
                left: 50%;
                top: 20px;
                transform: translateX(-50%);
                >span{
                    font-size: 13px;
                    padding: 0px 1px;
                    display: inline;
                    cursor: pointer;
                }
                >span:nth-of-type(1){
                    color: red;
                    border: 1px solid red;
                }
                >span:nth-of-type(2){
                    color: blue;
                    border: 1px solid blue;
                }
            }
            >sub{
                color: @baseColor;
                bottom: 0px;
            }
            &::before,&::after{
                content: "";
                width: 10px;
                height: 10px;
                border-radius: 5px;
                background-color: #eee;
                position: absolute; 
                left: -5px;
            }
            &::before{
                top: -5px;
                box-shadow: 0px -1px 1px #ddd inset;
            }
            &::after{
                bottom: -5px;
                box-shadow: 0px 1px 1px #ddd inset;
            }
        }
        /* 设置当前Box的样式 */
        &.active{ 
            >div{
                background-color: @baseColor;
            }
            >.wjs_pRight{
                > b,sub,p{
                    color: #fff;
                }
            }
            >.wjs_pLeft{
                color: #fff;
                &::before{
                    // html的图片 
                    content:'\260E';
                    font-size: 15px;
                    position: absolute;
                    top: 0px;
                    left: 0px;
                }
            }
        }

    }
    // 设置sx下 nav实现滑动效果
    .tabs_parent{
        width: 100%;
        overflow: hidden;
    }
}

/* 新闻块 */
.wjs_news{
    padding: 20px;
    .wjs_newsTitle{
        padding: 20px;
        line-height: 50px;
        font-size: 20px;
        border-bottom: 1px solid #ccc;
        text-align: center;
        position: relative;
        &::before{
            content: "";
            height: 8px;
            width: 8px;
            border-radius: 4px;
            border: 1px solid #ccc;
            position: absolute;
            bottom: -4px;
            right: -8px;
        }
    }
    .nav-tabs{ 
        border-bottom: none;
        position: relative;
        // 通过伪元素添加虚线 这样是不行的  因为ul没有高度 所以height:100% 不起作用
        // 所以伪元素无法解决
        // &::before{
        //     content: "";
        //     width: 1px;
        //     height: 100%;
        //     position: absolute;
        //     border-left: 1px dashed @baseColor;
        //     left: 0px;
        //     top: 0px;
        // }
        >li{
            margin-bottom: 60px;
            >a{
                background-color: #c3c3c3;
                width: 60px;
                height: 60px;
                border-radius: 30px;
                border: none;
                position: relative;
                >span{
                    font-size: 20px;
                    line-height: 20px;
                    position: absolute;
                    color: #ffffff;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                }
            }
            >a:hover{
                background-color: @baseColor;
                border: none;
            }
            &.active{
                >a,a:hover,a:focus{
                    border: none;
                    background-color: @baseColor;
                }
            }
        }
        >li:last-of-type{
            margin-bottom: 0px;
        }
        /* 使用媒体查询设置w在768-992之间的li元素的样式 */
        @media screen and (min-width: 768px) and (max-width: 992px){
            > li{
                margin: 20px 30px;
            }
        }
        /* 使用媒体查询设置w<768之间的li元素的样式 */
        @media screen and (max-width: 768px){
            > li{
                margin: 20px 0px;
                width: 25%;
            }
        }
    }
    .wjs_newsLine{
        width: 1px;
        height: 100%;
        position: absolute;
        border-left: 1px dashed @baseColor;
        left: 45px;
        top: 0px;
    }
}

/* 合作伙伴 */
.wjs_partner{
    background-color: #eee;
    padding: 20px;
    text-align: center;
    h3{
        width: 100%;
        text-align: center;
    }
    ul{
        list-style: none;
        display: inline-block;
        >li{
            float: left;
            margin-left: 40px;
        }
    }
    .wjs_icon{
        font-size: 40px;
    }
}